package peng.yang.express.VolleyUtils;

import android.graphics.Bitmap;
import android.util.LruCache;

import com.android.volley.toolbox.ImageLoader;


public class MyImageCache implements ImageLoader.ImageCache{

    private LruCache cache = new LruCache(10*1024*1024);

    public MyImageCache() {

    }

    @Override
    public Bitmap getBitmap(String s) {

        return (Bitmap) cache.get(s);

    }

    @Override
    public void putBitmap(String s, Bitmap bitmap) {
        cache.put(s,bitmap);

    }
}
